package com.wanbangee.marksystem.service.imp;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wanbangee.marksystem.dao.SScoreDao;
import com.wanbangee.marksystem.service.QueryStuSubjectiveService;

@Service
public class QueryStuSubjectiveServiceImp implements QueryStuSubjectiveService{

	@Autowired
	private SScoreDao sScoreDao;
	
	@Override
	public List<Map> selectSubjectiveScoreSingleComment(Integer examId, Integer subId, String topicNo, Integer claId,
			Double minScore, Double maxScore, String stuNmOrStuNo, Integer pageNum, Integer pageSize) {
		return this.sScoreDao.selectSubjectiveScoreSingleComment(examId, subId, topicNo, claId, minScore, maxScore, "%"+stuNmOrStuNo+"%", pageNum-1, pageSize);
	}

	@Override
	public List<Map> selectSubjectiveScoreMoreComment(Integer examId, Integer subId, String topicNo, Integer claId,
			Double minScore, Double maxScore, String stuNmOrStuNo, Integer pageNum, Integer pageSize) {
		return this.sScoreDao.selectSubjectiveScoreMoreComment(examId, subId, topicNo, claId, minScore, maxScore, "%"+stuNmOrStuNo+"%", pageNum-1, pageSize);
	}

}
